package com.zy;

import com.zy.project1.AppConfig;
import com.zy.project1.biz.BankBizImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 *
 */
public class App
{
    public static void main( String[] args )
    {
        ApplicationContext ac=new AnnotationConfigApplicationContext(AppConfig.class);



        BankBizImpl bb= (BankBizImpl) ac.getBean("bankBizImpl");
        bb.showAll().forEach(  System.out::println );
    }
}
